package com.salton123.dytt

import android.annotation.SuppressLint
import com.salton123.log.XLog
import com.salton123.net.RetrofitManager

object RequestHelper {

    @SuppressLint("CheckResult")
    fun movieList(categoryId: Int = 0, page: Int = 0) {
        RetrofitManager.self().create(ApiService::class.java)
            .moveList(categoryId, page)
            .subscribe({
                XLog.i("RequestHelper","response:"+it)
            }, {
                XLog.i("RequestHelper","onerror:$it")
            }, {

            })
    }

    // http://m.dydytt.net:8080/adminapi/api/movieDetail.json?categoryId=9&movieDetailId=25226
    fun movieDetail() {
        val timestamp = (System.currentTimeMillis() / 1000.toLong()).toString()
//        val verifyCode = Verify().headerRequestKey(
//            BaseApplication.sInstance.applicationContext,
//            "12334321",
//            timestamp
//        )
//        XLog.e("RequestHelper", "verifyCode:$verifyCode,timestamp:$timestamp")
    }

}